home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / graphics / tierra40.arj / TIERRA / CONFIGUR.H < prev    next >
C/C++ Source or Header  |  1992-09-09  |  2KB  |  88 lines

  1. /* configur.h  9-9-92  configurable parameters at compile time */
  2. /* Tierra Simulator V4.0: Copyright (c) 1991, 1992 Tom Ray & Virtual Life */
  3. /*
  4. #ifndef lint
  5. static char     sccsid[] = "@(#)configur.h    1.5     7/21/92";
  6. #endif
  7. */
  8.  
  9. #include "license.h"
  10.  
  11. #ifndef CONFIGUR_H
  12. #define CONFIGUR_H
  13. #define VER 4.0
  14.  
  15. #define INSTBITNUM 5
  16. #define INSTNUM 32         /* INSTNUM = 2 ^ INSTBITNUM */
  17. #define PLOIDY 1
  18.  
  19. #ifndef INST
  20. #define INST 1  /* 1, 2, 3 or 4 */
  21. #endif
  22.  
  23. #ifndef SHELL
  24. #ifdef unix
  25. /* DAN #define SHELL "xterm" */
  26. #define SHELL "csh"
  27. #else
  28. #define SHELL "command"
  29. #endif
  30. #endif /* shell */
  31.  
  32. #define STDIO     0
  33. #define BASIC     1
  34.  
  35. #if INST == 1
  36. #define STACK_SIZE 10
  37. #define ALOC_REG 4
  38. #define NUMREG 4         /* NUMREG = ALOC_REG */
  39. #endif /* INST == 1 */
  40.  
  41. #if INST == 2
  42. #define STACK_SIZE 10
  43. #define ALOC_REG 8
  44. #define NUMREG 4         /* NUMREG = ALOC_REG / 2 */
  45. #define GETBUFSIZ 3
  46. #define PUTBUFSIZ 3
  47. #endif /* INST == 2 */
  48.  
  49. #if INST > 2
  50. #define STACK_SIZE 10
  51. #define ALOC_REG 4
  52. #define NUMREG 4         /* NUMREG = ALOC_REG */
  53. #define GETBUFSIZ 3
  54. #define PUTBUFSIZ 3
  55. #endif /* INST > 2 */
  56.  
  57. #ifndef FRONTEND
  58. #define FRONTEND BASIC  /* BASIC or STDIO */
  59. #endif
  60.  
  61. #ifdef __TURBOC__
  62. #define FRONTEND BASIC
  63. /* #define MEM_CHK */   /* define for DOS external bounds checker */
  64. #endif
  65.  
  66. /* #define CM5       */ /* CM5 the version for the CM5 */
  67. #define MICRO        /* define for micro step debugging */
  68. /* #define HSEX      */ /* define for haploid, crossover sex */
  69. #define ICC          /* define for inter-cellular communication, != I/O */
  70. /* #define READPROT  */ /* define to implement read protection of soup */
  71. #define WRITEPROT    /* define to implement write protection of soup */
  72. /* #define EXECPROT  */ /* define to implement execute protection of soup */
  73. /* #define ERROR     */ /* use to include error checking code */
  74. /* #define ALCOMM    */ /* define for socket communications */
  75. /* #define MEM_PROF  */ /* profile dynamic memory usage */
  76.  
  77. /* the following definitions should be provided by the compilers,
  78.    except for IBM3090 which must be manually defined */
  79.  
  80. /* __TURBOC__  = Turbo C for DOS */
  81. /* OS2_MC      = Microsoft C for OS/2 */
  82. /* IBM3090     = IBM 3090 the compiler will not define this, do it manually */
  83. /* unix        = for unix systems */
  84. /* __GNUC__    = gcc unix compiler */
  85. /* ANSI        = for ANSI environment */
  86.  
  87. #endif
  88.